package cn.edu.sgu.www.pms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 表字段
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("v_table_field")
public class TableField implements Serializable {
    private static final long serialVersionUID = 18L;

    /**
     * 表名称
     */
    @ApiModelProperty(value = "表名称")
    private String name;

    /**
     * 字段类型
     */
    @ApiModelProperty(value = "字段类型")
    private String dataType;

    /**
     * 字段长度
     */
    @ApiModelProperty(value = "字段长度")
    private Integer length;

    /**
     * 字段注释
     */
    @ApiModelProperty(value = "字段注释")
    private String comment;

    /**
     * 数据库表名
     */
    @ApiModelProperty(value = "数据库表名")
    private String tableName;
}